package com.lag;

import com.lag.config.Appconfig;
import com.lag.service.OrderService;
import com.lag.service.TestService;
import com.lag.service.UserService;
import com.lag.spring.SpringApplicationContext;

public class SpringApplication {
    public static void main(String[] args) {
        // 传入spring配置文件
        SpringApplicationContext applicationContext = new SpringApplicationContext(Appconfig.class);
//        OrderService orderService = (OrderService) applicationContext.getBean("orderService");
//        orderService.test();
        TestService testService = (TestService) applicationContext.getBean("meberService");
        testService.test();
    }
}
